{extend name='layout/base' /}
{block name='title'}农村家宴列表{/block}
{block name='contentHeader'}
<h1>
    农村家宴管理
    <small>农村家宴列表</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 农村家宴管理</a></li>
    <li class="active">农村家宴列表</li>
</ol>
{/block}
{block name='content'}
<!-- /.box -->
<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">农村家宴 共有<strong style="color:red;">{$ncjyCount}</strong>名</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <!-- search form -->
        <form action="" method="get" class="sidebar-form0" style="width:80%;margin: 0 auto;">
            <div class="input-group">
                <input type="date" class="form-control" id="date" name="date" value="{:$date ? $date : '';}" style="width:49%;float: left;">
                <input type="text" name="q" class="form-control" value="{:$q ? $q : '';}" placeholder="填上传者姓名或电话..." style="width:49%;float:right;">
                <span class="input-group-btn">
                    <button type="submit" id="search-btn" class="btn btn-flat">
                        <i class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </form>
        <!-- /.search form -->
        <table class="table table-bordered">
            <tr>
                <th>举办者姓名</th>
                <th>举办者电话</th>
                <th>举办地</th>
                <th>举办日期</th>
                <th>人数</th>
                <th>事由</th>
                <th>厨师姓名</th>
                <th>厨师电话</th>
                <th>厨师住址</th>
                <th>指导医师</th>
                <th>填写时间</th>
                <th>填写人</th>
                <th>操作</th>
            </tr>
            {volist name='list' id='ncjy'}
            <tr>
                <td>{$ncjy.host_name}</td>
                <td>{$ncjy.host_tel}</td>
                <td>{$ncjy.host_addr}</td>
                <td>{$ncjy.host_date}</td>
                <td>{$ncjy.num}</td>
                <td>{$ncjy.cause}</td>
                <td>{$ncjy.cook_name}</td>
                <td>{$ncjy.cook_tel}</td>
                <td>{$ncjy.cook_addr}</td>
                <td>{$ncjy.doctor}</td>
                <td>{$ncjy.ncjy_time}</td>
                <td>{$ncjy.admin.admin_name}</td>
                <td>
                    <a href="{:url('Ncjy/edit',['ncjy_id' => $ncjy.ncjy_id,'page' => $page,'q' => $q])}" class="badge bg-green">编辑</a>
                    <a href="{:url('Ncjy/del',['ncjy_id' => $ncjy.ncjy_id])}" class="badge bg-red">删除</a>
                </td>
            </tr>
            {/volist}
        </table>
    </div>
    <!-- /.box-body -->
    <div class="box-footer clearfix">
        <ul class="pagination pagination-sm no-margin pull-right">
            {$list|raw}
        </ul>
    </div>
</div>
<!-- /.box -->
{/block}